package com.ken.mall.controller;

import com.ken.mall.comm.ServerResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Api(tags = "控制层示例")
@Slf4j
@RequestMapping("/demo/")
public class DemoController {


    @ApiOperation("示例接口")
    @PostMapping("heihei")
    public ServerResponse heihei(){
        return ServerResponse.createBySuccessMessage("hello world");
    }
}
